package com.xgk.boot.module.core.logistics.service.mothership.response;


import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class RateDto {
    //商品编码
    private String productCode;
    //服务商spi-code
    private String spCode;
    //询价请求id
    private String quoteId;
    //报价id
    private String id;
    /**
     * Price of the insurance coverage in USD
     */
    private double coveragePrice;
    /**
     * Freight's value covered by insurance in USD
     */
    private double coveredValue;
    /**
     * Dollars of credit applied towards this rate
     */
    private Integer creditsApplied;
    /**
     * representing the estimated earliest datetime that this shipment would be picked up at
     * 表示此装运将被提取的估计最早日期
     */
    private LocalDateTime estimatedPickupDate;
    /**
     * representing the estimated latest datetime that this shipment would be delivered at
     * 表示此批货物预计的最新交货日期
     */
    private LocalDateTime estimatedDeliveryDate;
    //USD 价格
    private BigDecimal price;
    /**
     * The shipping provider for this rate
     */
    private String provider;
    /**
     * The shipping provider for this rate
     *
     */
    private String providerScac;
    private List<String> services;
    private String serviceType;
    /**
     * Range number of transit days
     * 运输天数范围
     */
    private TransitDays transitDays;
    private Truck truck;
    private List<String> warnings;

    @Data
    public static class TransitDays {
        private int minimum;
        private int maximum;
    }

    @Data
    public static class Truck {
        private String equipment;
        private String specialty;
    }
}
